package com.happiness.test.config;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.happiness.gateway.config.swagger.SwaggerConfigAbstract;
import com.happiness.test.properties.TestSwaggerProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.spring.web.plugins.Docket;

import javax.annotation.Resource;

@EnableOpenApi
@Configuration
public class SystemSwaggerConfig2 extends SwaggerConfigAbstract {

    @Resource
    private TestSwaggerProperties swaggerProperties;

    @Override
    @Bean(name = "testSwaggerConfig")
    public Docket createRestApi() {
        return createRestApi(swaggerProperties);
    }
}
